<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="layout">
<head>
<title>游戏详情</title>
</head>
<body>
	<div layout:fragment="content">
		<div class="row">
		<div class="alert alert-info" role="alert" th:text="${message}"></div>
		 <!--  <p class="bg-info" th:text="${message}"></p> 
			<label th:text="${message}"></label> -->
		</div>
		<form class="form-horizontal">
			<div class="form-group">
				<label class="col-sm-2 control-label">游戏名称</label>
				<div class="col-sm-5">
				 	<p class="form-control-static" th:text="${model.name}"></p>
				</div>
			</div>
			<div class="form-group">
				<label for="inputPassword3" class="col-sm-2 control-label">平台</label>
				<div class="col-sm-5">
					<p class="form-control-static" th:text="${model.gamePlat}"></p>
					<!-- <label class="radio-inline"> 
						<input type="radio" name="gamePlat" value="1" checked th:if="${#strings.equals(model.gamePlat, 1)}"> 端游
					</label> 
					<label class="checkbox-inline"> 
					<input type="radio"
						name="gamePlat" value="2" checked th:if="${#strings.equals(model.gamePlat, 2)}"> 页游
					</label> <label class="checkbox-inline"> 
					<input type="radio"
						name="gamePlat" value="3" checked th:if="${#strings.equals(model.gamePlat, 3)}"> 手游
					</label> -->
				</div>
			</div>
			<div class="form-group">
				<label for="inputPassword3" class="col-sm-2 control-label">类型</label>
				<div class="col-sm-5">
					<p class="form-control-static" th:text="${model.gameType}"></p>
					<!-- <select class="form-control" name="gameType">
						<option value="1" selected th:if="${model.gameType==1}">休闲益智</option>
						<option value="2" selected th:if="${model.gameType==2}">卡牌</option>
						<option value="3" selected th:if="${model.gameType==3}">格斗</option>
					</select> -->
				</div>
			</div>
			<div class="form-group">
				<label for="inputPassword3" class="col-sm-2 control-label">封面图片</label>
				<div class="col-sm-5">
					<p class="form-control-static" th:text="${model.logoUrl}"></p>
				</div>
			</div>
			<div class="form-group">
				<label for="inputPassword3" class="col-sm-2 control-label">下载地址</label>
				<div class="col-sm-5">
					<p class="form-control-static" th:text="${model.installPkgUrl}"></p>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<a th:href="@{'/game/update/' + ${model.id}}" class="btn btn-default"> 修 改</a>
					
					<a th:href="@{'/game/delete/' + ${model.id}}" onclick="var f = window.confirm('确定要删除该条记录吗?');return f;" class="btn btn-default"> 删 除</a>
				</div>
			</div>
		</form>
	</div>
</body>
</html>
